package com.zc.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
//@EnableConfigurationProperties(InfoProperties.class)
public class PropertyConfig {

    @Bean
    @ConfigurationProperties(prefix = "life")
    public LifeProperties lifeProperties(){
        return new LifeProperties();
    }
}
